import { ref } from 'vue'
import { defineStore } from 'pinia'


export const useLoginStore = defineStore('login', () => {

  let token = ref("")

  function toToken(v: string) {
    token.value = v
  }

  return { token, toToken }
}, {
  // 开启持久化存储
  persist: {
    enabled: true
  }
})